<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.fit.user.dao.CaseMsgDAO"%>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <script language="JavaScript" src="dateselect.js"  charset="utf-8"></script>
        <%
    String caseID = (String)session.getAttribute("caseID");
    CaseMsgDAO caseMsgDAO = new CaseMsgDAO();
    String caseLocation = caseMsgDAO.getCaseMsgByCaseID(caseID).getCaseLocation();
     %>
    <title>My JSP 'inquest.jsp' starting page</title>
    
   <style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}


</style>
<script type="text/javascript">
function gofun(_link) {
    window.top.frames('mainFrame').location.href=_link;

 }
function check_add()
  {
 
  if(document.getElementById("xwrid").value=="")
  {
  alert("请输入讯问人!");
  return false;
  }
  else if(document.getElementById("jlrid").value=="")
  {
  alert("请输入记录人!");
  return false;
  }
  else if(document.getElementById("bxwrid").value=="")
  {
  alert("请输入被讯问人!");
  return false;
  }
  else
  { 
    if(confirm("确认要提交吗?"))
			{
				gettime('endtime');
				  document.getElementById("divrsjc").style.display ="none";
    document.getElementById("btkaishi").disabled="false";
				return true;
			}
			else{
				return false;
			}
   
   }
  
    }
    
    
    function gettime(id)
    {

 if (!document.layers&&!document.all)
 return

 var Timer=new Date()
  var year=Timer.getFullYear()
 var month= Timer.getMonth()+1;
var  date = Timer.getDate();
  
   var hours=Timer.getHours()
 var minutes=Timer.getMinutes()
 var seconds=Timer.getSeconds()
 

 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
    
   
   // alert(year+"-"+month+"-"+date+" "+hours+":"+minutes+":"+seconds);
    document.getElementById(id).value=year+"-"+month+"-"+date+" "+hours+":"+minutes+":"+seconds;
    document.getElementById("divrsjc").style.display ="block";
    document.getElementById("btkaishi").disabled="true";
    }
</script>
<link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
 

  </head>
  
  <body>
  
  
  
    
      
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="table_boder" cellSpacing="0" cellPadding="0" width="100%" >
  <tr>
    <td width="17" valign="top" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=contextPath%>/img/skin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
        <td height="31" width="85">
        <a style="cursor:hand;" onclick="gofun('/police/police/inquiry.jsp')"> 
                <div class="mytitlebt">询问信息
</div>   </a>
        </td>
           
    <td height="31" width="85">
               <a style="cursor:hand;" onclick="gofun('/police/police/inquest.jsp')"> 
       <div class="titlebt">讯问信息</div>
       </a>
        </td>


         <td height="20" align="right">&nbsp;</td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>

  <tr>
    <td valign="middle" background="<%=contextPath%>/img/skin/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9" align="center">
 <table width="100%" height="550" border="0" cellpadding="0" cellspacing="0" id="mybgcolor">
		<tr><td align="center"><h2>讯问信息表</h2></td></tr>
	<tr><td valign="top" align="center">
   <form action="<%=basePath %>/inquiryAndInquestMsg.do?oper=submitInquest" method="post" onsubmit="return check_add()">
      <table> <tr><td><input type="button" id="btkaishi" value="开始" onclick="gettime('begintime')"></td></tr></table>
 <div id="divrsjc" style="display:none">
  
  <table  class="table_boder" width="60%">
  <tr>
   <td  align="right" >时间：</td><td colspan="3"><input type="text"  id="begintime" name="inquiryAndInquestMsgEntity.beginTime" ></td>
      <td  align="left" >到</td><td colspan="3"><input type="text"  id="endtime"name="inquiryAndInquestMsgEntity.endTime" ></td>
      
  
  </tr>
  
  <tr>
 
  
   <td align="right">地点：<input type="hidden" name="inquiryAndInquestMsgEntity.caseID" value="<%=session.getAttribute("caseID") %>"></td><td><input type="text" name="inquiryAndInquestMsgEntity.inquiryAddress"  value="<%=caseLocation %>"></td>
  </tr>
  <tr>
  <td align="right">询问人：</td><td><input type="text" id="xwrid"name="inquiryAndInquestMsgEntity.inquiryMan" ></td>
   <td align="right">记录人：</td><td><input type="text" id="jlrid" name="inquiryAndInquestMsgEntity.recordMan" ></td>
  </tr>
  <tr>
  <td align="right">被询问人姓名：</td><td><input type="text" id="bxwrid" name="inquiryAndInquestMsgEntity.beInquiryManName" ></td>
   <td align="right">性别：</td><td><input type="text" name="inquiryAndInquestMsgEntity.beInquiryManSex" ></td>
  </tr>
  <tr>
  <td align="right">生日：</td><td><input type="text" style='width:200px' readonly="readonly" name="inquiryAndInquestMsgEntity.beinquiryManBirth" onfocus="HS_setDate(this)" ></td>
   <td align="right">家庭住址：</td><td><input type="text" name="inquiryAndInquestMsgEntity.beinquiryManAdrress" ></td>
  </tr>
  <tr>
  <td align="right">工作单位：</td><td><input type="text" name="inquiryAndInquestMsgEntity.beinquiryManWPlac" ></td>
  </tr>
   <tr>
      <td  align="center" colspan="4"><input type="submit" value="提交"> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="cancel" value="重置"></td>
      
      </tr>
  </table>
  </div>
  </form>
  
		</td></tr></table>
	</td>
    <td background="<%=contextPath%>/img/skin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=contextPath%>/img/skin/buttom_bgs.gif"><img src="<%=contextPath%>/img/skin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  
  </body>
</html>
